package com.ruoyi.common.huanxing;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.easemob.im.server.EMProperties;
import com.easemob.im.server.EMService;

@Configuration
public class EMConfig {

	
	/**
	 * public EMService service() {
		EMProperties properties = EMProperties.builder()
				.setAppkey("1103231227154454#demo")
				.setClientId("YXA6PqeSaJt2S_G_bbtHbNjg6g")
				.setClientSecret("YXA6BmiwviZmM4DO3F504VrtGTxGU2I")
				.build();
		return new EMService(properties);
	}
	 */
	@Bean
	public EMService service() {
		EMProperties properties = EMProperties.builder()
				.setAppkey("1103231227154454#mida")
				.setClientId("YXA6HOfgNlX_RhyKmoyPdD2DhA")
				.setClientSecret("YXA6RJyLJAKLsaqlle3NIRPTdM8MLec")
				.build();
		return new EMService(properties);
	}
	
//	@Bean
//	public EMService service() {
//		EMProperties properties = EMProperties.builder()
//				.setAppkey("1190230517160513#demo")
//				.setClientId("YXA6DQocruPmS8C6X0QuY9_MvA")
//				.setClientSecret("YXA61IRUADB9NNl3UOv85jP8gQeSi-A")
//				.build();
//		return new EMService(properties);
//	}
	
}
